package org.meetunexpectedly.entity.video;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.meetunexpectedly.entity.BaseEntity;
import org.meetunexpectedly.entity.user.User;

/**
 * @Description: 视频评论表(暂时使用)
 * @Author: pupil
 * @Date: 2025/1/23 下午 4:51
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class VideoComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    // 评论用户id
    private Long userId;

    // 视频id
    private Long videoId;

    // 视频作者id
    private Long videoUserId;

    // 评论内容
    private String content;

    // 评论或者回复用户
    @TableField(exist = false)
    private User user;

    // 判断是否为视频作者的评论
    @TableField(exist = false)
    private Boolean isVideoUser;
}
